<extend name="Public/base" />
<block name='style'>
    <link href="__STATIC__/iCheck/skins/flat/green.css" rel="stylesheet">
</block>
<block name="body"> 

    <div class="right_col" role="main">
        <div class="">



            <div class="page-title">
                <div class="title_left">
                    <h3>{$meta_title} <small>Some examples to get you started</small></h3>
                </div>

                <div class="title_right">
                    <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                        <div class="input-group">
                            <input type="text" class="form-control" placeholder="Search for...">
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="button">Go!</button>
                            </span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="clearfix"></div>
           




            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>创建菜单 <small>Create menu</small></h2>

                        <ul class="nav navbar-right panel_toolbox">
                            <li class="">
                                <a href="{:U('add')}"><button type="button" class="btn btn-success"><i class="fa fa-edit"></i>&nbsp;添加</button></a>
                            </li>  <li class="">
                                <a href="{:U('delAll')}" class='del_common_all'><button type="button" class="btn btn-danger"><i class="fa fa-trash-o"></i>&nbsp;删除</button></a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>


                    <div class="x_content">

<form class="ids">
                        <div class="table-responsive">
                            <table class="table table-striped jambo_table bulk_action">
                                <thead>
                                    <tr class="headings">
                                        <th>
                                            <input type="checkbox" id="check-all" class="flat">
                                        </th>
                                        <th class="column-title">排序 </th>
                                        <th class="column-title">标题 </th>
                                        <th class="column-title">模板 </th>
                                        <th class="column-title">点击量 </th>
                                        
                                        <th class="column-title">关键字 </th>
                                       <th class="column-title">缩略图 </th>
                                       <th class="column-title">发布时间 </th>
                                        <th class="column-title">状态 </th>
                                        <th class="column-title no-link last"><span class="nobr">操作</span>
                                        </th>
                                        <th class="bulk-actions" colspan="9">
                                            <a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
                                        </th>
                                    </tr>
                                </thead>

                                <tbody>

                                <volist name='_list' id='vo'>  
                                    <tr class="even pointer  del_id_{$vo.id}">
                                        <td class="a-center ">
                                            <input type="checkbox" class="ids flat"  name="id[]" value='{$vo.id}'>
                                        </td>
                                        <td class=" ">{$vo.id}</td>
                                        <td class=" "><a href="{:U('index',array('pid'=>$vo['id']))}">{$vo.title}</a></td>
                                       <td class=" ">{$vo.template_detail}</td>
                                        <td class=" ">{$vo.post_hits}</td>
                                     
                                        <td class=" ">{$vo.keywords}</td>
                                        <td class=" "><img src='{$vo.thum|get_file_url}'  width='80' height="80"/></td>
                                        <td class=" ">{$vo.create_time|time_format}</td>
                                        <td class=" ">
                                            
                                                <a href="{:U('changeStatus?method=cgStatus&id='.$vo['id'].'&status='.$vo['status'])}" class='btn   {$vo.status==1?'btn-success':'btn-warning'}  btn-xs common_href_comfirm' titles="您将'{$vo.status==1?'取消通过审核':'通过审核'}'本条记录?" content="确认{$vo.status==1?'取消通过审核':'通过审核'}">{$vo.status==1?'已审核':'未审核'}</a><br>
                                            <a href="{:U('changeStatus?method=cgIstop&id='.$vo['id'].'&status='.$vo['istop'])}" class='btn  {$vo.istop==1?'btn-success':'btn-warning'} btn-xs common_href_comfirm' titles="您将'{$vo.istop==1?'取消置顶':'设为置顶'}'本条记录?" content="确认{$vo.istop==1?'取消置顶':'设为置顶'}">{$vo.istop==1?'置顶':'未置顶'}</a><br>
                                            <a href="{:U('changeStatus?method=cgRecommended&id='.$vo['id'].'&status='.$vo['recommended'])}" class='btn {$vo.recommended==1?'btn-success':'btn-warning'}  btn-xs  common_href_comfirm' titles="您将'{$vo.recommended==1?'取消推荐':'设为推荐'}'本条记录?" content="确认{$vo.recommended==1?'取消推荐':'设为推荐'}">{$vo.recommended==1?'推荐':'未推荐'}</a><br>
                        
                                        </td>
                            
                                        <td>
                                            <a href="{:U('edit',array('id'=>$vo['id']))}" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i>编辑</a>
                                           <a href="{:U('changeStatus?method=deleteArticle&id='.$vo['id'])}" class="btn btn-danger btn-xs  del_common_tr_id" delid='{$vo.id}'><i class="fa fa-trash-o"></i>删除</a>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>
</form>


                        <nav>
                            <ul class="pagination">
                               {$_page}
                            </ul>
                        </nav>          
                    </div>    
                </div>   
            </div>
            
            
            
            
            
            
            
        </div>
    </div>
</div>
</block>    
<block name='script'>

    <script src="__STATIC__/iCheck/icheck.min.js"></script>
    <script>
        Lzy.highlight_subnav('{:U('index')}');
    </script>
</block>  